// 绑定退出点击事件
$('#logout-btn').on('click', function (e) {
    e.preventDefault();
    layer.confirm('确定要退出吗？', {
        icon: 3,
        title: '提示'
    }, function (index) {
        //do something
        //1.移除token
        localStorage.removeItem('token');

        //2.跳转到登录的页面  login.html
        location.href = '/admin/login1.html';

        layer.close(index); //作用是关闭弹层
    });
});